﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SplendidCRM
{
    public class CheckBoxTemplate : ITemplate
    {
        public string Text { get; set; }
        public CheckBoxTemplate(string text)
        {
            Text = text;
        }

        // Implementation of ITemplate
        public void InstantiateIn(Control container)
        {
            var cb = new CheckBox();
            cb.Text = Text;
            container.Controls.Add(cb);
        }
    }
}